/*
 *
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include "State.h"
#include "Sprite.h"
#include "Smile.h"
#ifndef _SMILECONTROLLER_H_
#define _SMILECONTROLLER_H_

using namespace std;

class SmileController
{
    private:
   	
   	typedef struct arq_smile{
    	float tamanho;
		float velocidade;
		float Vdirecao;
		float aceleracao;
		float Adirecao;
		Uint32 tvivo;
		Uint32 tmorto;
		float x0;
		float y0;
		Smile *smile;
		struct arq_smile *prox, *ante;
	} Arq_smile;
	typedef struct reg_smile{
		Arq_smile *arq_smile;
		struct reg_smile *prox, *ante;
	} Reg_smile;
   	
   	Reg_smile *regini;
	Uint32 tNow, tBefore;
	FILE *arq;
	void organiza();
	void inclui();
	void ler();
	void checa( SDL_MouseMotionEvent); 
	
    public:
	
	SmileController( );
	void mostra(SDL_Surface *screen);
    void run( SDL_MouseMotionEvent );
};

#endif
